/**
 * @author ghp
 * @date 2023/6/11
 * @title
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
//        boolean res = solution.canJump(new int[]{2,3,1,1,4});
//        boolean res = solution.canJump(new int[]{3,2,1,0,4});
//        boolean res = solution.canJump(new int[]{2, 0});
        boolean res = solution.canJump(new int[]{2, 0, 0});
//        boolean res = solution.canJump(new int[]{1,2,3});
//        boolean res = solution.canJump(new int[]{2,1,0,0});
        System.out.println(res);
    }
}
